package com.nervenets.general.hibernate.dao;

import com.nervenets.general.hibernate.TreeDomainObject;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface BaseTreeDao<T extends TreeDomainObject<T>> extends BaseDao<T> {
    List<T> findAllByParentIdOrderByQueue(long parentId);

    long countByParentId(long parentId);
}
